//package com.iwhalecloud.mgt.com.aliyun.mgt.service.fourA.impl;
//
//import com.alibaba.fastjson.JSON;
//import com.iwhalecloud.mgt.com.aliyun.mgt.entity.base.UserInfo;
//import com.iwhalecloud.mgt.com.aliyun.mgt.service.fourA.IFourASSOService;
//import koal.sgpmi.client.author.ClientForAuthor;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import static org.junit.Assert.*;
//
///**
// * Created with IDEA
// *
// * @author:zhangxingxing 0027012120
// * @date:2019/4/15
// * @time:14:48
// */
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class FourASSOServiceImplTest {
//
//    @Autowired
//    private IFourASSOService fourASSOService;
//    @Value("${4A.cas.version}")
//    private String version;
//    @Value("${4A.cas.appCode}")
//    private String appCode;
//    @Value("${4A.cas.name}")
//    private String name;
//    @Value("${4A.cas.password}")
//    private String password;
//    @Value("${4A.cas.author.url}")
//    private String authorUrl;
//    @Autowired
//    private FourAAuthorServiceImpl fourAAuthorService;
//
//    @Test
//    public void getUserInfo() {
////        fourAAuthorService.getAuthorByUserCode("0");
////        ClientForAuthor client = new ClientForAuthor();
////        client.initHttp(Integer.valueOf(version), appCode, name, password, authorUrl);
////        try {
////            Object o = client.getResourceByRoleCode("0");
////            System.out.println(JSON.toJSONString(o));
////        } catch (Exception e) {
////            e.printStackTrace();
////        }
//    }
//
//    @Test
//    public void getUserDetailInfo() {
////        UserInfo userInfo = new UserInfo().setUserId("230181199306151651");
////        fourASSOService.getUserDetailInfo(userInfo);
//    }
//}